/* app */
const Koa = require('koa')
const app = new Koa()

/* 中间件的引入 */
const loggerAsync = require('./middleware/logger-async')


/* 中间件的使用 */
app.use(loggerAsync())

app.use(async ctx => {
  ctx.body = 'Hellow, world!'
})

app.listen(4000)

console.log('demo start at port 4000')